home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / include / x11 / xfuncpro.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-11  |  2.4 KB  |  89 lines

  1. /* $XConsortium: Xfuncproto.h,v 1.7 91/05/13 20:49:21 rws Exp $ */
  2. /*
  3.  * Copyright 1989, 1991 by the Massachusetts Institute of Technology
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software and its
  6.  * documentation for any purpose and without fee is hereby granted, provided
  7.  * that the above copyright notice appear in all copies and that both that
  8.  * copyright notice and this permission notice appear in supporting
  9.  * documentation, and that the name of M.I.T. not be used in advertising
  10.  * or publicity pertaining to distribution of the software without specific,
  11.  * written prior permission. M.I.T. makes no representations about the
  12.  * suitability of this software for any purpose.  It is provided "as is"
  13.  * without express or implied warranty.
  14.  *
  15.  */
  16.  
  17. /* Definitions to make function prototypes manageable */
  18.  
  19. #ifndef _XFUNCPROTO_H_
  20. #define _XFUNCPROTO_H_
  21.  
  22. #ifndef NeedFunctionPrototypes
  23. #if defined(FUNCPROTO) || __STDC__ || defined(__cplusplus) || defined(c_plusplus)
  24. #define NeedFunctionPrototypes 1
  25. #else
  26. #define NeedFunctionPrototypes 0
  27. #endif
  28. #endif /* NeedFunctionPrototypes */
  29.  
  30. #ifdef __BCC__
  31. #define NeedVarargsPrototypes 1
  32. #endif
  33.  
  34. #ifndef NeedVarargsPrototypes
  35. #if __STDC__ || defined(__cplusplus) || defined(c_plusplus) || (FUNCPROTO&2)
  36. #define NeedVarargsPrototypes 1
  37. #else
  38. #define NeedVarargsPrototypes 0
  39. #endif
  40. #endif /* NeedVarargsPrototypes */
  41.  
  42. #if NeedFunctionPrototypes
  43.  
  44. #ifdef __BCC__
  45. #define NeedNestedPrototypes 1
  46. #endif
  47.  
  48. #ifndef NeedNestedPrototypes
  49. #if __STDC__ || defined(__cplusplus) || defined(c_plusplus) || (FUNCPROTO&8)
  50. #define NeedNestedPrototypes 1
  51. #else
  52. #define NeedNestedPrototypes 0
  53. #endif
  54. #endif /* NeedNestedPrototypes */
  55.  
  56. #ifdef __BCC__
  57. #define _Xconst const
  58. #endif
  59.  
  60. #ifndef _Xconst
  61. #if __STDC__ || defined(__cplusplus) || defined(c_plusplus) || (FUNCPROTO&4)
  62. #define _Xconst const
  63. #else
  64. #define _Xconst
  65. #endif
  66. #endif /* _Xconst */
  67.  
  68. #ifndef NeedWidePrototypes
  69. #ifdef NARROWPROTO
  70. #define NeedWidePrototypes 0
  71. #else
  72. #define NeedWidePrototypes 1        /* default to make interropt. easier */
  73. #endif
  74. #endif /* NeedWidePrototypes */
  75.  
  76. #endif /* NeedFunctionPrototypes */
  77.  
  78. #ifndef _XFUNCPROTOBEGIN
  79. #ifdef __cplusplus            /* for C++ V2.0 */
  80. #define _XFUNCPROTOBEGIN extern "C" {    /* do not leave open across includes */
  81. #define _XFUNCPROTOEND }
  82. #else
  83. #define _XFUNCPROTOBEGIN
  84. #define _XFUNCPROTOEND
  85. #endif
  86. #endif /* _XFUNCPROTOBEGIN */
  87.  
  88. #endif /* _XFUNCPROTO_H_ */
  89.